package cn.yunhe.service.impl;

import cn.yunhe.dao.PointDao;
import cn.yunhe.entity.Point;
import cn.yunhe.service.PointService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("pointService")
public class PointServiceImpl  implements PointService {

    @Resource
    private PointDao pointDao;

    /**
     * 根据父类获取子类
     * @param fieldId
     * @return
     * 郭瀚钰
     */
    @Override
    public List<Point> getPointByField(Integer fieldId) {
        return pointDao.getPointByField(fieldId);
    }

    public PointDao getPointDao() {
        return pointDao;
    }

    public void setPointDao(PointDao pointDao) {
        this.pointDao = pointDao;
    }
}
